package com.heima.model.media.dtos;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class WmNewsContentItemDto {

    private String type;

    private String value;

    private Integer id;

    public static final String TYPE_TEXT = "text";
    public static final String TYPE_IMAGE = "image";

    public boolean isText(){
        return TYPE_TEXT.equals(this.type);
    }

    public boolean isImage(){
        return TYPE_IMAGE.equals(this.type);
    }


}
